package com.ititer.bean;

import java.util.Date;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

import com.ititer.AbstractBean;

public class CompetenceBean extends AbstractBean {

	private static final long serialVersionUID = 1793161534973014377L;

	private Integer id;

	private Integer accountId;

	@NotNull(message = "competence.item.can.not.be.null")
	@Length(max = 100, message = "competence.item.too.long")
	private String item;

	private Integer level;

	private Date lastUpdate;

	private boolean saved;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAccountId() {
		return accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdateTime) {
		this.lastUpdate = lastUpdateTime;
	}

	public boolean isSaved() {
		return saved;
	}

	public void setSaved(boolean saved) {
		this.saved = saved;
	}

}
